package io.renren.modules.maintenance.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.modules.maintenance.entity.MDeviceDetail;
import io.renren.modules.maintenance.mapper.MDeviceDetailMapper;
import io.renren.modules.maintenance.service.IMDeviceDetailService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author iweb
 * @since 2020-08-07
 */
@Service
public class MDeviceDetailServiceImpl extends ServiceImpl<MDeviceDetailMapper, MDeviceDetail> implements IMDeviceDetailService {

    /**
     * 插入 包含甲方名称(公司) 工程师名 设备类别id
     * @param deviceDetail
     * @return
     */
    @Override
    public boolean insertDeviceDetail(MDeviceDetail deviceDetail) {

        boolean save = this.save(deviceDetail);//是否插入成功
        return save;
    }
}
